﻿/*
 * Created by SharpDevelop.
 * User: Администратор
 * Date: 03/28/2011
 * Time: 12:09
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using Video.FLV;

namespace TestFLV
{
	class Program
	{
		public static void Main(string[] args)
		{
			using(Decoder decoder = new Decoder(@"c:\temp\test.flv")){
				FLVHeader header = decoder.GetHeader();
				try{
					while(true){
						FLVBody body = decoder.GetBody();
						if(decoder.isEnd()) break;
						//decoder.GoToNextTag(body.FlvTag);
					}
				}
				catch(Exception e){
					Console.WriteLine(e.Message);
				}

			}
			
			Console.WriteLine("Press any key to continue . . . ");
			Console.ReadKey(true);
		}
		
	}
}